package edu.ynu.se.xiecheng.achitectureclass.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author laruui
 * @since 2023-12-07
 */
@TableName("t_item")
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TItem对象", description = "")
@AllArgsConstructor
@NoArgsConstructor
public class Item implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商品主键Id")
    @TableId(value = "Id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "商家id")
    private String userId;

    @ApiModelProperty(value = "门店Id")
    private String shopId;

    @ApiModelProperty(value = "商品名称")
    private String name;

    @ApiModelProperty(value = "商品图片")
    private String image;

    @ApiModelProperty(value = "商品价格")
    private BigDecimal price;

    @ApiModelProperty(value = "商品描述")
    private String description;

    @ApiModelProperty(value = "商品是否上架 up-上架/down-未上架")
    @TableField("upOrDown")
    private String upordown;


}
